﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;

namespace UI.ModSalary
{
    public partial class DefBankFormat : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DefDicBiz defDicBiz = new DefDicBiz();
                defDicBiz.InitDropDownList("Wage_Sets", ddlSetsID, "1");
                
            }
        }

        protected void ddlSetsID_SelectedIndexChanged(object sender, EventArgs e)
        {
            string setsID = ddlSetsID.SelectedValue;
            if (setsID == "0") return;
            SetsItemBiz setsItemBiz = new SetsItemBiz();
            DataTable dt = setsItemBiz.GetItemDict(setsID, "");
            for (int i = 0; i < dt.Rows.Count; i++)
            {
                ddlFieldName.Items.Add(dt.Rows[i]["ItemName"].ToString());
            }
        }

        protected void btnAdd_Click(object sender, EventArgs e)
        {

        }

        protected void btnUpdate_Click(object sender, EventArgs e)
        {

        }

        protected void btnDelete_Click(object sender, EventArgs e)
        {

        }

        protected void btnSet_Click(object sender, EventArgs e)
        {

        }
    }
}